import fetch from '@/utils/fetch'

export default {
    async index(data) {
        return await fetch({
            url: '/customer',
            method: 'post',
            data,
        })
    },

    async save(data) {
        return await fetch({
            url: '/customer/save',
            method: 'post',
            data,
        })
    },

    async remove(data) {
        return await fetch({
            url: '/customer/remove',
            method: 'post',
            data,
        })
    },

    async findAll(data) {
        return await fetch({
            url: '/table/customer/findAll',
            method: 'post',
            data,
        })
    },
}